package com.gnerv.rabbitmq.agent.business.impl;

import com.gnerv.rabbitmq.agent.business.ClusterBusiness;
import com.gnerv.rabbitmq.agent.model.entity.NodeStatus;
import com.gnerv.rabbitmq.agent.service.ClusterService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Gnerv LiGen
 */
@Service
public class ClusterBusinessImpl implements ClusterBusiness {

    @Resource
    private ClusterService clusterService;

    @Override
    public List<NodeStatus> listNode(String clusterName) {
        return clusterService.listNodeStatus(clusterName);
    }

}
